/**  

* @Title: ImageInfo.java 

* @Package com.gxbadge.model 

* @Description: TODO(用一句话描述该文件做什么) 

* @author CST

* @version V1.0  

*/ 

package com.gxbadge.model;

public class ImageInfo {
	
	private Integer imageInfoId;
	private String title;
	private String info;
	private String note;
	private Language lang;
	private Image image;
	public Integer getImageInfoId() {
		return imageInfoId;
	}
	public void setImageInfoId(Integer imageInfoId) {
		this.imageInfoId = imageInfoId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public Language getLang() {
		return lang;
	}
	public void setLang(Language lang) {
		this.lang = lang;
	}
	public Image getImage() {
		return image;
	}
	public void setImage(Image image) {
		this.image = image;
	}
	public ImageInfo(){
		
	}
	public ImageInfo(Integer imageInfoId, String title, String info,
			String note, Language lang, Image image) {
		super();
		this.imageInfoId = imageInfoId;
		this.title = title;
		this.info = info;
		this.note = note;
		this.lang = lang;
		this.image = image;
	}
	public boolean equals(Object obj){
		
		if (this == obj){
			return true;
		}
		if (obj != null && obj.getClass() == ImageInfo.class){
			ImageInfo imageInfo = (ImageInfo)obj;
			return this.getImageInfoId().equals(imageInfo.getImageInfoId()) && this.getTitle().equals(imageInfo.getTitle());
		}
		return false;

	}
	
	public int hashcode(){
		
		return this.getImageInfoId().hashCode() + this.getTitle().hashCode();
		
	}
	
	public String toString(){
		
		return this.getImageInfoId().toString() + this.getTitle().toString();

	}
	
}
